home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Games Collection 1 / software vault.zip / software vault / CDR10 / ACK3D.ZIP / DEMO / DEMO.H < prev    next >
Text File  |  1993-08-10  |  3KB  |  147 lines

  1. /* Header file for ACK-3D demo */
  2. /* Author: Lary Myers           */
  3.  
  4. /* This file descibes things specific to the demo application */
  5.  
  6. #define USE_SOUND   1        /* Set to 1 to compile sound routines */
  7.  
  8. #define CLOCK_PTR   (*(long far *)((long)0x46C))
  9.  
  10. #define FP_SHIFT    16
  11.  
  12. typedef struct {
  13.     int        mdx;
  14.     int        mdy;
  15.     int        mButtons;
  16. } MOUSE;
  17.  
  18. typedef struct {
  19.     int        xP;
  20.     int        yP;
  21.     int        Angle;
  22. } VIEWERS;
  23.  
  24. #define KEYBD  0x9    /* INTERRUPT 9 */
  25.  
  26. /* Keyboard press and release codes for INT 9 handler */
  27.  
  28. #define RIGHT_ARROW_KEY      77
  29. #define UP_ARROW_KEY      72
  30. #define LEFT_ARROW_KEY      75
  31. #define DOWN_ARROW_KEY      80
  32. #define CONTROL_KEY      29
  33. #define ESCAPE_KEY      1
  34. #define HOME_KEY      71
  35. #define PGUP_KEY      73
  36. #define PGDN_KEY      81
  37. #define END_KEY          79
  38. #define PLUS_KEY      78
  39. #define MINUS_KEY      74
  40. #define LETTER_A_KEY      30
  41. #define LETTER_D_KEY      32
  42. #define LETTER_H_KEY      35
  43. #define LETTER_I_KEY      23
  44. #define LETTER_L_KEY      38
  45. #define LETTER_M_KEY      50
  46. #define LETTER_S_KEY      31
  47. #define SPACEBAR_KEY      57
  48. #define NUMBER_1_KEY      2
  49. #define NUMBER_2_KEY      3
  50. #define NUMBER_3_KEY      4
  51. #define ENTER_KEY      28
  52. #define F1_KEY          59
  53. #define F2_KEY          60
  54. #define F3_KEY          61
  55. #define F4_KEY          62
  56. #define F5_KEY          63
  57. #define F6_KEY          64
  58. #define F7_KEY          65
  59. #define F8_KEY          66
  60. #define F9_KEY          67
  61. #define F10_KEY          68
  62.  
  63. #define DEF_STEPRATE    6
  64.  
  65. typedef struct {
  66.     int    hx;
  67.     int    hy;
  68.     UINT far *Cursor;
  69. } MCURSORS;
  70.  
  71. #define MOUSE_ARROW        0
  72. #define MOUSE_UPARROW        1
  73. #define MOUSE_DNARROW        2
  74. #define MOUSE_LTARROW        3
  75. #define MOUSE_RTARROW        4
  76.  
  77. #define WALL_DELAY        20    /* Interations to animate walls */
  78.  
  79. #define START_HOURS        1
  80. #define START_MINUTES        59
  81. #define START_SECONDS        59
  82. #define TIME_DELAY        6
  83.  
  84. #define VIDEO_OFFSET        7080    /* Offset to start of viewport */
  85. #define VIDEO_ROWS        125    /* Number of rows in viewport  */
  86. #define VIDEO_COLS        238    /* Number of cols in viewport  */
  87.  
  88. #define VP_STARTX        40    /* Viewport coordinates */
  89. #define VP_STARTY        22
  90. #define VP_ENDX            278
  91. #define VP_ENDY            150    /* Was 147 */
  92.  
  93. #define VP_LARROWX        115    /* Where mouse turns to left arrow */
  94. #define VP_RARROWX        210    /* Where mouse turns to right arrow */
  95. #define VP_UDARROWY        80    /* Where mouse turns up/down arrow */
  96.  
  97. #define VP_TIMEX        10    /* Where "time remaining" displays */
  98. #define VP_TIMEY        191
  99.  
  100. #define VP_TEXTX        65
  101. #define VP_TEXTY        24
  102. #define VP_STATUSX        0
  103. #define VP_STATUSY        187
  104. #define VP_STATUSX1        319
  105. #define VP_STATUSY1        199
  106.  
  107. #define VP_LIGHTBARX        82
  108. #define VP_LIGHTBARY        158
  109. #define VP_LIGHTBARX1        237
  110. #define VP_LIGHTBARY1        163
  111. #define VP_LIGHTBAR_OFFSET    50642
  112. #define VP_LIGHTBAR_ROWS    6
  113. #define VP_LIGHTBAR_COLS    155
  114.  
  115. #define MAX_INVENTORY        8    /* Max objects carried at one time */
  116. #define OBJECT_COUNT        3
  117.  
  118. #define OBJ_CIRCUITBOARD    0
  119. #define OBJ_FUELCELLS        1
  120. #define OBJ_COMPUTER        2
  121.  
  122. typedef struct {
  123.     int    x;
  124.     int    y;
  125.     char    *Text;
  126.     } HOLOTEXT;
  127.  
  128. #define HT_TEXTX    140
  129. #define HT_TEXTY    60
  130.  
  131.  
  132.  
  133. /***************************** Prototypes ********************************/
  134. void mouse_hide_cursor(void);
  135. void mouse_show_cursor(void);
  136. int mouse_installed(void);
  137. void mouse_read_cursor(int *,int *,int *);
  138. void mouse_set_cursor(int,int);
  139. void mouse_set_graphics_cursor(int hsrow,int hscol,char far *mask);
  140. void ShowColor(UCHAR color);
  141. int ReadMasterFile(char *fname);
  142. void mouse_released(void);
  143. void UnlockDoors(void);
  144.  
  145.  
  146.  
  147.